# -*- coding: utf-8 -*-
from django.db import models

class Target(models.Model):
    name = models.CharField(max_length=80)
    url = models.URLField()
    
    def __unicode__(self):
        return self.name

class Ping(models.Model):
    creation_date = models.DateTimeField(auto_now_add=True)
    status = models.IntegerField()
    target = models.ForeignKey(Target)

    